#include <stdio.h>
#include <windows.h>
int main()
{
    char str[] = "welcome";
    int size = sizeof(str) / sizeof(str[0]) - 1;
    int i = 0;
    int j = size - 2;
    for (i = 1; i <= size/2; i++)
    {
        int k = 0;
        for (k = 0; k < i ; k++)
        {
            printf("%c", str[k]);
        }
        for (; k <= j; k++)
        {
            printf("#");
        }
        for (; k < size; k++)
        {
            printf("%c", str[k]);
        }
        j -= 1;
        printf("\n");
    }
    for(i=0;i<size;i++){
        printf("%c",str[i]);
    }
    Sleep(1000);
}